package com.mt.vsphere.core.conf;




import java.util.HashMap;
import java.util.Map;

public class SysConfHelper extends NormalGameConf{

    public SysConfHelper(SysConfDao sysConfDao) {
        this.confDao = sysConfDao;
    }

    @Override
    protected Map<String, String> getDefaultConf() {
        Map<String,String> map = new HashMap<>(SysConfKey.values().length);
        for (SysConfKey sysConfKey : SysConfKey.values()) {
            map.put(sysConfKey.getSysConf().getName(), sysConfKey.getSysConf().getValue());
        }
        return map;
    }

    @Override
    protected SysConf getDefaultConfByKey(String key) {
         return SysConfKey.valueOf(key).getSysConf();
    }
}
